<?php

/**
 * sfGuardPermission filter form.
 *
 * @package    filters
 * @subpackage sfGuardPermission *
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 11675 2008-09-19 15:21:38Z fabien $
 */
class sfGuardPermissionFormFilter extends PluginsfGuardPermissionFormFilter
{
  public function configure()
  {
        parent::configure();

      $this->widgetSchema['name']           = new sfWidgetFormFilterInput(array('with_empty'=>false));
      $this->widgetSchema['description']            = new sfWidgetFormFilterInput(array('with_empty'=>false));

      $this->validatorSchema->setOption('allow_extra_fields', true);

      $this->widgetSchema->setLabels(array(
                                      'name'             => 'Nome',
                                      'description'            => 'Descrição'
                                    ));
  }
}